<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<% response.setHeader("Content-disposition","attachment; filename="+java.net.URLEncoder.encode("成绩管理", "UTF-8")+".xls" ); %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@include file="/include/taglibs.jsp"%>
<html>
  <head>
    <title>成绩管理</title>
    <meta http-equiv="content-Type"content="text/html;charset=utf-8"> 
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">	
	<style type="text/css">
	<!--
	body {
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
		background-color: #EEF2FB;
	}
	#manageSubject table  td{
		font-size:12px;
	}
	-->
	</style>
  </head>
<body>
<form method="post" action="${ctx}/score.action" name="queryForm">
			<table width="95%"  border="1"  cellspacing="0" cellpadding="0">
				  <tr align="center">
					<th>序号</th>				
					<th>学生姓名</th>
					<th>课程名称</th>
					<th>成绩</th>
					<th>考试时间</th>		
				  </tr>
				  <c:forEach items="${list }" begin="0" var="score" varStatus="status">
				   <tr align="center">
				        	<td class="std">${status.index + 1}</td>
							<td class="std">${score.user.name}</td>							
							<td class="std">${score.course.courseName}</td>
							<td class="std">${score.score}</td>	
							<td class="std">${score.course.createTime}</td>
					  </tr>
				  </c:forEach>
			</table>	
</form>
</body>
</html>
<style>
th {
    background-color: #eef6fe;
    border: 1px solid #aedef2;
    color: #05b;
    font-size: 14px;
    width: 671px;
}
.std{
    background: none repeat scroll 0 0 ghostwhite;
    border: 1px solid #aedef2;
    color: #333;
    font-family: 新宋体;
    font-size: 12px;
}
</style>
